package com.chen.gulimallcommon.common.constant;

public class ProductConstant {

    //定义一个枚举类型，来设置数据库中的attr_type值，区分该attr是规则参数还是销售属性
    public enum AttrType {
        ATTR_TYPE_BASE(1,"规则参数"),
        ATTR_YPE_SALE(0,"销售属性");

        private int code;
        private String msg;
        AttrType(int code,String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum StatusEnum {
        NEW_SPU(0,"新建"),SPU_UP(1,"上架"),SPU_DOWM(2,"下架");

        private int code;
        private String msg;
        StatusEnum(int code,String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
